<?php

namespace App\Http\Requests\Api\v2;

use App\Http\Requests\CommonRequest;

class OrderTimeRequest extends CommonRequest
{
    public $scenes = [

    ];

    public function rules()
    {
        return [
            'name' => ['required'],
            'type' => ['required',],
            'start_time' => ['required','date_format:H:i:s'],
            'end_time' => ['required','date_format:H:i:s'],
        ];
    }


    public function messages()
    {
        return [
            'name.required' => "名称不能为空",
            'type.required' => "类型不能为空",
            'start_time.date_format' => "开始时间格式不正确",
            'start_time.required' => "开始时间不能为空",
            'end_time.required' => "结束时间不能为空",
            'end_time.date_format' => "结束时间格式不正确",
        ];
    }
}
